package myschool.object.student;

public class TestTriAngle {
    public static void main(String[] args) {
        TriAngle triangle = new TriAngle();
        triangle.setBase(3);
        triangle.setHeight(4);
        System.out.println("三角形的面积为："+(triangle.getBase()*triangle.getHeight()/2));
    }
}
